﻿using MvvmFoundation.Wpf;
using ServiceOperater.Helpers;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;

namespace ServiceOperater.ViewModels
{
    public sealed class MyBatisNodeViewModel : ObservableObject
    {
        public MyBatisNodeViewModel(String locationFilePath, String namespaceStr)
        {
            this.LocationFilePath = locationFilePath;
            this.Namespace = namespaceStr;
            this.FoundFileInfoList = new ObservableCollection<FoundFileInfo>();
        }



        #region Props
        public String LocationFilePath { get; private set; }
        public String Namespace { get; private set; }

        private string id = string.Empty;
        public string Id
        {
            get
            {
                return id;
            }
            set
            {
                if (id == value)
                {
                    return;
                }

                id = value;
                RaisePropertyChanged("Id");
            }
        }

        public ObservableCollection<FoundFileInfo> FoundFileInfoList { get; private set; }
        #endregion
    }
}
